#{extends 'main.html' /}
#{set 'moreStyles'}
<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/navigationbar.scss'}" />
<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/transferPrice.scss'}" />
<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/table.scss'}" />
#{/set}
<script language="javascript">
	//把运价查询设置为选中状态
	$(function(){
		$(".categorynav ul li").removeClass("active");
		$("#transPrice_item").addClass("active");
	});
	//刷新页面
	function doSearch() {
		$("#form2").submit();
	}
	
</script>
<div class="navigationBar">
	<table>
		<tr>
			<td><img src="@{'/public/images/navigationHouse.gif'}"></td>
			<td><strong>当前位置：</strong></td>
			<td>
				<a href="/">首页</a>
				&nbsp;>>&nbsp;
				<font class="current">运价查询</font>
			</td>
		</tr>
	</table>
</div>
<div class="transferPrice">
	<div>
		#{form @TransPrice.queryPublicTransPrice(), name:'form1', id:'form1'}
			<table cellspacing="1" border="0">
              <tbody>
              <tr>
                <td>始发地:</td>
                <td>
	                <select name="startCity">
	                <option value="NULL">请选择</option>
					#{if cityList}
	             		#{list items:cityList, as:'city'}
	             			 <option value="${city.id}">${city.cityName}</option>
	             		#{/list}
	                #{/if}
	                </select>
	               &nbsp;
                </td>
                <td>目的地:</td>
                <td>
	                <select name="endCity">
	                <option value="NULL">请选择</option>
	                #{if cityList}
	             		#{list items:cityList, as:'city'}
	             			 <option value="${city.id}">${city.cityName}</option>
	             		#{/list}
	                #{/if}
	                </select>
	            	&nbsp;
                </td>
               <td>重量:</td>
                <td>
	                <input type="text" value="" size="5" name="weight">
	            	KG&nbsp;
                </td>
                <td>
                  <input type="submit" value="查询">
                </td>
              </tr>
            </tbody>
      </table>
   #{/form}              
</div><br/>

<div class="box">
	#{if priceList}  
	<table class="common-table">
		<tr>
			<th>快递公司</th>
			<th>发件地</th>
			<th>寄达地</th>
			<th>起价</th>
			<th>续价</th>
			<th>运费合计</th>
		</tr>
		#{list items:priceList, as:'priceItem'}
		<tr>
			<td>${priceItem.company.companyName}</td>
			<td>${priceItem.startCity.cityName}</td>
			<td>${priceItem.endCity.cityName}</td>
			<td>${priceItem.publicBasePrice}元</td>
			<td>${priceItem.publicRenewalPrice}元/KG</td>
			<td>${priceItem.publicTotalPrice.format('## ###.00')}元</td>
		</tr>
		#{/list}
	</table>			
	#{/if}
</div>



</div>
